namespace STOWaybillMall.Core
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using TongTongMall.Domain.Repositories.Attributes;

    [Table("OrderBaseInfo")]
    public partial class OrderBaseInfo
    {
        public OrderBaseInfo()
        {
        }

        [Identify]
        [StringLength(32)]
        public string OrderID { get; set; }

        public long UserID { get; set; }

        public byte OrderType { get; set; }

        public DateTime CreationTime { get; set; }

        public Guid? OrderReceiptInfoID { get; set; }

        public Guid? OrderExpressID { get; set; }

        public string ProductSnap { get; set; }

        public string PaymentSnap { get; set; }

        [Column(TypeName = "money")]
        public decimal? TotalFee { get; set; }

        [Column(TypeName = "money")]
        public decimal? NeedPayFee { get; set; }

        [StringLength(200)]
        public string Remarks { get; set; }

        [StringLength(200)]
        public string LeaveMsg { get; set; }

        public Guid? OrderPaymentID { get; set; }

        public byte? OrderStatus { get; set; }

        [Column(TypeName = "money")]
        public decimal? BalanceOfDeduction { get; set; }

        public DateTime? AutoCloseTime { get; set; }

        [StringLength(32)]
        public string SplitFormOrderID { get; set; }

        public DateTime? AutoCompleteTime { get; set; }

    }
}
